3.425 \(\int \frac {a+b \log (c (d (e+f x)^p)^q)}{(g+h x)^2} \, dx\)

Optimal. Leaf size=80 \[ -\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}+\frac {b f p q \log (e+f x)}{h (f g-e h)}-\frac {b f p q \log (g+h x)}{h (f g-e h)} \]

[Out]

b*f*p*q*ln(f*x+e)/h/(-e*h+f*g)+(-a-b*ln(c*(d*(f*x+e)^p)^q))/h/(h*x+g)-b*f*p*q*ln(h*x+g)/h/(-e*h+f*g)

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2395, 36, 31, 2445} \[ -\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}+\frac {b f p q \log (e+f x)}{h (f g-e h)}-\frac {b f p q \log (g+h x)}{h (f g-e h)} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*Log[c*(d*(e + f*x)^p)^q])/(g + h*x)^2,x]

[Out]

(b*f*p*q*Log[e + f*x])/(h*(f*g - e*h)) - (a + b*Log[c*(d*(e + f*x)^p)^q])/(h*(g + h*x)) - (b*f*p*q*Log[g + h*x
])/(h*(f*g - e*h))

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 2395

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Simp[((f + g
*x)^(q + 1)*(a + b*Log[c*(d + e*x)^n]))/(g*(q + 1)), x] - Dist[(b*e*n)/(g*(q + 1)), Int[(f + g*x)^(q + 1)/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*f - d*g, 0] && NeQ[q, -1]

Rule 2445

Int[((a_.) + Log[(c_.)*((d_.)*((e_.) + (f_.)*(x_))^(m_.))^(n_)]*(b_.))^(p_.)*(u_.), x_Symbol] :> Subst[Int[u*(
a + b*Log[c*d^n*(e + f*x)^(m*n)])^p, x], c*d^n*(e + f*x)^(m*n), c*(d*(e + f*x)^m)^n] /; FreeQ[{a, b, c, d, e,
f, m, n, p}, x] &&  !IntegerQ[n] &&  !(EqQ[d, 1] && EqQ[m, 1]) && IntegralFreeQ[IntHide[u*(a + b*Log[c*d^n*(e
+ f*x)^(m*n)])^p, x]]

Rubi steps

\begin {align*} \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^2} \, dx &=\operatorname {Subst}\left (\int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{(g+h x)^2} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}+\operatorname {Subst}\left (\frac {(b f p q) \int \frac {1}{(e+f x) (g+h x)} \, dx}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}-\operatorname {Subst}\left (\frac {(b f p q) \int \frac {1}{g+h x} \, dx}{f g-e h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname {Subst}\left (\frac {\left (b f^2 p q\right ) \int \frac {1}{e+f x} \, dx}{h (f g-e h)},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {b f p q \log (e+f x)}{h (f g-e h)}-\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}-\frac {b f p q \log (g+h x)}{h (f g-e h)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.10, size = 69, normalized size = 0.86 \[ \frac {-\frac {a}{g+h x}-\frac {b \log \left (c \left (d (e+f x)^p\right )^q\right )}{g+h x}+\frac {b f p q (\log (e+f x)-\log (g+h x))}{f g-e h}}{h} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Log[c*(d*(e + f*x)^p)^q])/(g + h*x)^2,x]

[Out]

(-(a/(g + h*x)) - (b*Log[c*(d*(e + f*x)^p)^q])/(g + h*x) + (b*f*p*q*(Log[e + f*x] - Log[g + h*x]))/(f*g - e*h)
)/h

________________________________________________________________________________________

fricas [A]  time = 0.45, size = 113, normalized size = 1.41 \[ -\frac {a f g - a e h + {\left (b f g - b e h\right )} q \log \relax (d) - {\left (b f h p q x + b e h p q\right )} \log \left (f x + e\right ) + {\left (b f h p q x + b f g p q\right )} \log \left (h x + g\right ) + {\left (b f g - b e h\right )} \log \relax (c)}{f g^{2} h - e g h^{2} + {\left (f g h^{2} - e h^{3}\right )} x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(d*(f*x+e)^p)^q))/(h*x+g)^2,x, algorithm="fricas")

[Out]

-(a*f*g - a*e*h + (b*f*g - b*e*h)*q*log(d) - (b*f*h*p*q*x + b*e*h*p*q)*log(f*x + e) + (b*f*h*p*q*x + b*f*g*p*q
)*log(h*x + g) + (b*f*g - b*e*h)*log(c))/(f*g^2*h - e*g*h^2 + (f*g*h^2 - e*h^3)*x)

________________________________________________________________________________________

giac [A]  time = 0.17, size = 129, normalized size = 1.61 \[ \frac {b f h p q x \log \left (f x + e\right ) - b f h p q x \log \left (h x + g\right ) + b h p q e \log \left (f x + e\right ) - b f g p q \log \left (h x + g\right ) - b f g q \log \relax (d) + b h q e \log \relax (d) - b f g \log \relax (c) + b h e \log \relax (c) - a f g + a h e}{f g h^{2} x - h^{3} x e + f g^{2} h - g h^{2} e} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(d*(f*x+e)^p)^q))/(h*x+g)^2,x, algorithm="giac")

[Out]

(b*f*h*p*q*x*log(f*x + e) - b*f*h*p*q*x*log(h*x + g) + b*h*p*q*e*log(f*x + e) - b*f*g*p*q*log(h*x + g) - b*f*g
*q*log(d) + b*h*q*e*log(d) - b*f*g*log(c) + b*h*e*log(c) - a*f*g + a*h*e)/(f*g*h^2*x - h^3*x*e + f*g^2*h - g*h
^2*e)

________________________________________________________________________________________

maple [F]  time = 0.37, size = 0, normalized size = 0.00 \[ \int \frac {b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )+a}{\left (h x +g \right )^{2}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*ln(c*(d*(f*x+e)^p)^q)+a)/(h*x+g)^2,x)

[Out]

int((b*ln(c*(d*(f*x+e)^p)^q)+a)/(h*x+g)^2,x)

________________________________________________________________________________________

maxima [A]  time = 0.51, size = 90, normalized size = 1.12 \[ b f p q {\left (\frac {\log \left (f x + e\right )}{f g h - e h^{2}} - \frac {\log \left (h x + g\right )}{f g h - e h^{2}}\right )} - \frac {b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right )}{h^{2} x + g h} - \frac {a}{h^{2} x + g h} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*(d*(f*x+e)^p)^q))/(h*x+g)^2,x, algorithm="maxima")

[Out]

b*f*p*q*(log(f*x + e)/(f*g*h - e*h^2) - log(h*x + g)/(f*g*h - e*h^2)) - b*log(((f*x + e)^p*d)^q*c)/(h^2*x + g*
h) - a/(h^2*x + g*h)

________________________________________________________________________________________

mupad [B]  time = 2.04, size = 89, normalized size = 1.11 \[ -\frac {a}{x\,h^2+g\,h}-\frac {b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )}{h\,\left (g+h\,x\right )}+\frac {b\,f\,p\,q\,\mathrm {atan}\left (\frac {f\,g\,2{}\mathrm {i}+f\,h\,x\,2{}\mathrm {i}}{e\,h-f\,g}+1{}\mathrm {i}\right )\,2{}\mathrm {i}}{h\,\left (e\,h-f\,g\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*log(c*(d*(e + f*x)^p)^q))/(g + h*x)^2,x)

[Out]

(b*f*p*q*atan((f*g*2i + f*h*x*2i)/(e*h - f*g) + 1i)*2i)/(h*(e*h - f*g)) - (b*log(c*(d*(e + f*x)^p)^q))/(h*(g +
 h*x)) - a/(g*h + h^2*x)

________________________________________________________________________________________

sympy [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*(d*(f*x+e)**p)**q))/(h*x+g)**2,x)

[Out]

Exception raised: NotImplementedError

________________________________________________________________________________________